package b;
//p192 foreach循环
import java.util.ArrayList;

public class demo4 {
    public static void main(String[] args) {
        ArrayList list = new ArrayList();
        list.add("枕头");
        list.add("被套");
        list.add("床单");
        for (Object obj : list) {
            System.out.println(obj);
        }
    }
}
